package com.fit.dao.product;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.Manufacturer;
import com.fit.entities.Product;
import com.fit.entities.User;

public interface ProductDAO {

	@CommitAfter
	public boolean save(Product product);
	
	public Product findById(Long id);
	
	public List<Product>  findAll();
	
	@CommitAfter
	public boolean deleteById(Long id);

	@CommitAfter
	public boolean update(Product product);
	
//	public Manufacturer findByIdAndCompany(Long id, String company);

}
